package com.practice.system.mapper;

import com.practice.system.pojo.DeviceInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface DeviceInfoMapper {

    // 获取全部数据
    List<DeviceInfo> findDeviceByPage(Map<String,Object> params);

    // 获取全部数量
    long getDeviceCount(Map<String,Object> params);

    Integer updateInfo(DeviceInfo deviceInfo);

    Boolean deleteByidOne(Integer id);

    Integer addDevice(DeviceInfo deviceInfo);
}
